<?
$smarty=new Smarty();
if(!ANTIHACK) die("ANTIHACK...");
include_once("./includes/paging.php");
$table="page";
$limit=30;
$numpage=5;
$act="page";
$page=intval($_GET['page']);
$listpage= paging($table,$act,$page,$total,$start,$limit,$numpage);
$smarty->assign("nameact","Quản lý Page");
$q = query("select $table.*,menu.name as menuname from $table,menu where $table.menuid=menu.id limit $start,$limit");
while($r=fetch($q))
{
	$pagedata[]=$r;
}

$smarty->assign("cur_page",$page);
$smarty->assign("listpage",$listpage);
$smarty->assign("total",$total);
$smarty->assign("start_count",$start);
$smarty->assign("page",$pagedata);
$smarty->display("page.htm");
?>